/*
 * @Author: Bennty
 * @Date: 2024-10-24 17:02:11
 * @LastEditors: 
 * @LastEditTime: 2024-10-31 16:23:06
 * @Description: 请填写简介
 */
import request from '@/utils/request';

/** 新增刀版 */
export const addKnifeModelApi = (data: any) => {
    return request({
        url: '/system/knifePlateInfo',
        method: 'post',
        data: data
    })
};

/** 查询刀版列表 */
export const getKnifeModelListApi = (data: any) => {
    return request({
        url: '/system/knifePlateInfo/list',
        method: 'post',
        data: data
    })
};

/** 获取刀版详细信息 */
export const getKnifeModelDetailsApi = (id: any) => {
    return request({
        url: `/system/knifePlateInfo/${id}`,
        method: 'get',
    })
};

/** 获取需要替换的刀版 */
export const getKnifeModelReplaceApi = () => {
    return request({
        url: `/system/knifePlateInfo/getNeedReplace`,
        method: 'get',
    })
};

/** 查询替换详情 根据id */
export const getReplaceDetailApi =(id: any) =>{
    return request({
        url: `/system/knifePlateInfo/getReplaceDetail`,
        method: 'get',
        params:{id: id}
    })
};

/** 修改刀版 */
export const updateKnifeModelApi = (data: any) => {
    return request({
        url: `/system/knifePlateInfo`,
        method: 'put',
        data: data
    })
};

/** 删除刀版 */
export const deleteKnifeModelApi = (id: any) => {
    return request({
        url: `/system/knifePlateInfo/remove`,
        method: 'delete',
        params: {id: id}
    });
};

/** 替换刀版 */
export const replaceKnifeModelApi = (data: any) => {
    return request({
        url: `/system/knifePlateInfo/replaceKnifeName`,
        method: 'put',
        data: data
    })
};

/** 刀线上传/下载日志 */
export const getKnifeModelRecord = () => {
    return request({
        url: `/system/knifePlateInfo/getKnifePlateListUpload`,
        method: 'get',
    });
};


/** 查询所有刀版列表 不分页 */
export const getKnifeModelNoPageApi = () => {
    return request({
        url: `/system/knifePlateInfo/getKnifeList`,
        method: 'get',
    });
};

/** 刀版上传/下载记录 (type:1 上传 2:下载)*/
export const getUploadDownLoadListApi = () => {

};